public class GxRendererCustomHTML
extends GxRendererAbstract
The class can render a custom html using lodash string templates.
Inside the template you will have access to the params object which contains value, valueFormatted, ...
Use This render if you want to render the data with a custom html.
Modifier and Type | Field and Description |
---|---|
BBjString | Template! String template which will be compiled in the client.
|
Constructor and Description |
---|
GxRendererCustomHTML(BBjString template!) Construct new GxRendererCustomHTML |
Modifier and Type | Method and Description |
---|---|
JsonObject | getAsJsonObject() {@inheritDoc} |
static BBjString | getCellRendererName() {@inheritDoc} |
public BBjString Template!
String template which will be compiled in the client.
<%= '' + (params.valueFormatted || params.value) + '' %>
public GxRendererCustomHTML(BBjString template!)
Construct new GxRendererCustomHTML
BBjString
template! The string template i.e <%= '' + (params.valueFormatted || '') + '' %>
public JsonObject getAsJsonObject()
public static BBjString getCellRendererName()